package com.sjp.demo.rpc.provider;

import com.sjp.demo.rpc.api.HelloService;
import com.sjp.demo.rpc.model.User;

@RpcService(value = HelloService.class, version = "2.0.0")
public class HelloServiceImpl2 implements HelloService {
    @Override
    public String sayHello(String name) {
        System.out.println("v2.0.0");
        System.out.println(name);
        return "hello, " + name;
    }

    @Override
    public void saveUser(User user) {
        System.out.println(user);
    }
}
